package com.quan.xczs.rpc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.quan.base.common.base.service.support.BaseService;
import com.quan.xczs.rpc.api.XczsGoodsOrderService;
import com.quan.xczs.rpc.dao.mapper.XczsGoodsOrderMapper;
import com.quan.xczs.rpc.model.XczsGoodsOrder;

@Service
public class XczsGoodsOrderServiceImpl extends BaseService<XczsGoodsOrder, Integer> implements XczsGoodsOrderService {
	
	@Autowired
	private XczsGoodsOrderMapper mapper ;

	@Override
	public XczsGoodsOrder getOrderByOpenid(String openId) {
		return this.mapper.getOrderByKey(openId, null, null, null, null);
	}

	@Override
	public XczsGoodsOrder getOrderByMobile(String mobile) {
		return this.mapper.getOrderByKey(null, mobile, null, null, null);
	}

	@Override
	public XczsGoodsOrder getOrderByOrderId(String orderId) {
		return this.mapper.getOrderByKey(null, null, orderId, null, null);
	}

	@Override
	public XczsGoodsOrder getOrderByOutTradeNo(String outTradeNo) {
		return this.mapper.getOrderByKey(null, null, null, outTradeNo, null);
	}

	@Override
	public XczsGoodsOrder getOrderByTransactionId(String transactionId) {
		return this.mapper.getOrderByKey(null, null, null, null, transactionId);
	}

}
